﻿cmake_minimum_required(VERSION 3.5)

project(fbxtracker LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Boost REQUIRED)
if(${Boost_FOUND})
	include_directories(${Boost_INCLUDE_DIRS})
	link_directories($ENV{BOOST_ROOT_LIB})
else(${Boost_FOUND})
	MESSAGE(STATUS "boost not found!")
endif(${Boost_FOUND})

add_executable(fbxtracker main.cpp Tools.h)
if (NOT WIN32)
	target_link_libraries(fbxtracker dl z boost_thread boost_filesystem boost_system)
endif ()

include(GNUInstallDirs)
install(TARGETS fbxtracker
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
